import { defHttp } from '@/utils/http/axios'

// 查询回调配置列表
export function getOrderCallbackConfigPage(params) {
  return defHttp.get({ url: '/biz/order-callback-config/page', params })
}

// 查询回调配置详情
export function getOrderCallbackConfig(id: number) {
  return defHttp.get({ url: `/biz/order-callback-config/get?id=${id}` })
}

// 新增回调配置
export function createOrderCallbackConfig(data) {
  return defHttp.post({ url: '/biz/order-callback-config/create', data })
}

// 修改回调配置
export function updateOrderCallbackConfig(data) {
  return defHttp.put({ url: '/biz/order-callback-config/update', data })
}

// 删除回调配置
export function deleteOrderCallbackConfig(id: number) {
  return defHttp.delete({ url: `/biz/order-callback-config/delete?id=${id}` })
}

// 导出回调配置 Excel
export function exportOrderCallbackConfig(params) {
  return defHttp.download({ url: '/biz/order-callback-config/export-excel', params }, '回调配置.xls')
}